<!DOCTYPE html>
<html lang="en">
   <head>
      <meta charset="UTF-8">
      <title>Array</title>
   </head>
   <body>
      <script>
         const arr = [{
            name: '张三',
            age: 18,
            sex: '男'
         },{
            name: '李四',
            age: 19,
            sex: '女'
         },{
            name: '王五',
            age: 20,
            sex: '男'
         }]
         const zs = arr.find(item => item.name ==='张三')
         console.log(zs)
      </script>
   </body>
</html>